// 通过定义插件的形式完成组件的全局注册
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import FullScreen from './FullScreen'
import Lang from './Lang'
// 1.对象定义
export const plugin1 = {
  install(Vue) {
    console.log('插件1被注册了', Vue)
  }
}
// 2.函数定义
export function plugin2(Vue) {
  console.log('插件2被注册了', Vue)
}

// 全局注册组件插件
const componentPlugin = {
  install(Vue) {
    Vue.component('page-tools', PageTools)
    Vue.component('upload-excel', UploadExcel)
    Vue.component('upload-img', UploadImg)
    Vue.component('full-screen', FullScreen)
    Vue.component('lang', Lang)
  }
}
export default componentPlugin
